package com.andong.mapper;

import com.andong.domain.entity.SubjectOne;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 王海云
* @description 针对表【subject_one(科目一题库表)】的数据库操作Mapper
* @createDate 2024-01-06 20:44:48
* @Entity com.andong.domain.entity.SubjectOne
*/
@Mapper
public interface SubjectOneMapper extends BaseMapper<SubjectOne> {

    @Select("SELECT * FROM subject_one ORDER BY RAND() LIMIT 100")
    List<SubjectOne> getOneHundred();
}




